import api from '../../api';

export default {
  namespace: 'holdDateRangeM',
  state: {},
  effects: {
    //查询时间区间
    *queryDateRange({ payload, callback }, { call, put, select }) {
      const res = yield call(api.queryDateRange, payload);
      callback(res);
    },
    //查询时间区间
    *queryDateRangeBarra({ payload, callback }, { call, put, select }) {
      const res = yield call(api.queryDateRangeBarra, payload);
      callback(res);
    },
  },
  reducers: {
    updateData(state, { payload }) {
      return {
        ...state,
        ...payload,
      };
    },
  },
  subscriptions: {},
};
